package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITravelService {

    PageInfo<Travel> queryTravel(QueryObject qo);

    void saveOrUpdate(Travel entity);

    Travel get(Long id);

    /**
     * 根据id查询游记的内容
     * @param id
     * @return
     */
    String getContent(Long id);

    /**
     * 更新游记状态的业务方法
     * @param id
     * @param state
     */
    void changeState(Long id, Integer state);
    //根据攻略id查游记
    List<Travel> selectForStrategyId(Long strategyId);
}
